package com.ruoyi.gas.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.gas.domain.GasWarnRectify;
import com.ruoyi.gas.domain.vo.GasEventDetailVo;
import com.ruoyi.gas.domain.vo.IndustryMonthDanger;
import com.ruoyi.gas.domain.vo.MonthWarn;
import com.ruoyi.gas.domain.vo.StreetWarn;
import org.apache.ibatis.annotations.Param;

/**
 * 隐患整改详情Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-18
 */
public interface GasWarnRectifyMapper
{
    /**
     * 查询隐患整改详情
     *
     * @param id 隐患整改详情主键
     * @return 隐患整改详情
     */
    public GasWarnRectify selectGasWarnRectifyById(Long id);

    /**
     * 查询隐患整改详情列表
     *
     * @param gasWarnRectify 隐患整改详情
     * @return 隐患整改详情集合
     */
    public List<GasWarnRectify> selectGasWarnRectifyList(GasWarnRectify gasWarnRectify);

    /**
     * 新增隐患整改详情
     *
     * @param gasWarnRectify 隐患整改详情
     * @return 结果
     */
    public int insertGasWarnRectify(GasWarnRectify gasWarnRectify);

    /**
     * 修改隐患整改详情
     *
     * @param gasWarnRectify 隐患整改详情
     * @return 结果
     */
    public int updateGasWarnRectify(GasWarnRectify gasWarnRectify);

    /**
     * 删除隐患整改详情
     *
     * @param id 隐患整改详情主键
     * @return 结果
     */
    public int deleteGasWarnRectifyById(Long id);

    /**
     * 批量删除隐患整改详情
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGasWarnRectifyByIds(Long[] ids);

    List<Map<String,Integer>> getWarnCountTrend(int type);

    int getWarnCounts();

    List<Map<String,Integer>> getBottomCount(@Param("type") Integer type, @Param("form") Integer form);

    int getGovern();

    List<Map<String,Object>> getGovernDetail();

    List<Map<String,Object>> getWarnList();

    List<Map<String,Object>> getDailyEventCount(Long companyId);

    Map<String,Integer> getCompanyWarnCount(Long companyId);

    List<Map<String,Integer>> getCompanyBottom(@Param("companyId") Long companyId,@Param("type") Integer type, @Param("form") Integer form);

    int getCompanyGovern(Long companyId);

    List<Map<String,Object>> getCompanyGovernDetail(Long companyId);

    List<Map<String,Object>> getCompanyEventList(Long companyId);

    List<Map<String,Object>> getAllWarnListByHead(Long companyId);

    List<Map<String,Object>> getWarnDetailById(Long id);

    List<Map<String,Object>> getWarnListByRectifier(Long rectifier);

    List<Map<String,Object>> getAuditWarnList(Long userId);

    List<Map<String,Object>> getDetailListByWarnId(Long id);

    List<IndustryMonthDanger> selectMonthDangerByIndustry();

    IndustryMonthDanger selectMonthDangerSumByIndustry();

    List<MonthWarn> selectWarnByMonthList();

    List<StreetWarn> selectStreetWarnList();
}
